import content from './index.ejs';
import meta from './meta.ejs';
import HyperDown from 'static/js/Parser'
let parser = new HyperDown();
export default function ContentTpl(data) {
  data.text = ''
  if (data.info.content) {
    data.text = parser.makeHtml(data.info.content)
  }
  return {
    content: content(data),
    meta: meta(data)
  };
}